{__NOLAYOUT__}
<layout name="no_nav" />

<style>
<!--
.orange {
	background-color: #FF746C !important;
}
.circular {
	width: 5em;
	height: 5em;
}
.time-line-title {
	height: 5em;
}
.avatar.avatar-peerpay {
	 width: 13em;
	 height: 5em;
  	 margin: 0px auto;
}
.avatar p {
	line-height: 50px;
	font-size: 1em;
	margin-top: 0;
	margin-bottom: -1px;
}
.avatar p>span {
	 padding: 5px 15px;
	 background-color: #809843;
	 border-radius: 13px;
	 color: #fff;
}
.center, .text-center {
 	text-align: center;
}
.block {
	overflow: hidden;
	-webkit-border-image: url("/v2/image/wap/border-line.png") 2 stretch;
	-moz-border-image: url("/v2/image/wap/border-line.png") 2 stretch;
	border-image: url("/v2/image/wap/border-line.png") 2 stretch;
	margin: 10px 0;
	background-color: #fff;
	display: block;
	position: relative;
}
.progress {
	margin-bottom: 0;
	padding: 20px 10px 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.progress-bar {
	height: 15px;
	width: 100%;
	background-color: #efeff4;
	border-radius: 7px;
}
.progress-bar span {
	display: inline-block;
	height: 100%;
	border-radius: 7px;
	background-color: rgba(6, 191, 4, 0.6);
	-webkit-transition: width 0.4s ease-in-out;
	-moz-transition: width 0.4s ease-in-out;
	transition: width 0.4s ease-in-out;
}
.progress .progress-txt {
	line-height: 30px;
	height: 30px;
	font-size: 12px;
}
.progress .progress-txt span {
	color: #999;
}
.pull-left {
	float: left;
}
.pull-right {
	float: right;
}
.progress .progress-txt span em {
	color: #ed5050;
}
-->
</style>

<!-- TOPBAR -->
<header class="top-bar flex-row">
	<h3 class="row-item top-bar-name">分享给朋友找TA代付</h3>
	<a class="row-item row-item-auto top-bar-menu" href="{$config.url}">主页</a>
</header>

<section class="pr-order-item pr-good-list orange" style="height:16em; padding-bottom:0; margin-bottom: 0;">

	<div class="time-line-title center" style="width:55%; color: white;margin:0px auto;">
	  {$order['say']}
	</div>
	
	<div class="avatar avatar-peerpay center">
	    <img class="circular" src="__PUBLIC__/Style/Home/Default/DisShop/images/avatar2.png">
		<p class="js-counter-msg">
            <span class="txt-status">等待真爱路过...</span>
        </p>
	</div>
	
</section>

<section class="pr-order-item" style="border-top: 2px solid #e5e5e5; border-bottom: 2px solid #e5e5e5; padding-top:0;">

	<div class="block progress">
		<div class="progress-bar">
			<span style="width:0;" class="fl"></span>
		</div>
		<div class="progress-txt">
			<span class="pull-left">已完成：<em>{$order['progress']}%</em></span>
	        <span class="pull-right"> 还差：<em>{$order['remain']}元</em></span>
	    </div>
	</div>
	
</section>

<!-- 商品清单 -->
<section class="pr-order-item pr-good-list">

  <h5 class="pr-good-list-title">商品清单：共&nbsp;{:count($order['orderItems'])}&nbsp;件商品</h5>
  
  <section class="pr-good-list-container">
    <volist name="order.orderItems" id="vo">
    <volist name="vo.items" id="vo_attr">
    <div class="pr-good-item flex-row">
      <a class="pr-good-pic row-item row-item-3" href="javascript:;">
        <img src="{$vo_attr.pic}">
      </a>
      <div class="pr-good-info row-item row-item-7">
        <p>{$vo.name}</p>
        <notempty name="vo_attr['attrs']">
        <p>规格：<foreach name="vo_attr.attrs" item="vo1" key="k">{$k}:{$vo1}&nbsp;&nbsp;</foreach></p>
        </notempty>
        <p>
          <span data-subprice="{$vo_attr.productPrice}">单价：{$vo_attr.productPrice}元</span>
          <span>数量：{$vo_attr.quantity}</span>
        </p>
      </div>
    </div>
    </volist>
    </volist>
  </section>

</section>

<section class="pr-order-item" style="background-color: transparent; padding-top: 0;">
	<button type="button" class="btn btn-orange w100 pr-btn btnShare">分享给朋友</button>
</section>

<script src="__PUBLIC__/Static/js/simapp.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$(function() {
		$(".btnShare").click(function() {
		    simapp.tips('分享给你的朋友或朋友圈。');
		});
		
		$(".pr-good-list-title").on("tap", function() {
		    $(this).parent().toggleClass("open");
		}).trigger('tap');
	});
</script>